import { strictEqual } from 'assert';

import { LangLabelConverter as Self } from './lang-label';

describe('src/scene/service/converter/lang-label.ts', () => {
    describe('.typer', () => {
        it('ok', () => {
            const self = new Self(null as any, null as any, null as any, null as any);
            const res = Reflect.get(self, 'typer');
            strictEqual(res, 'CcLangLabel');
        });
    });

    describe('.getName(layerName: string)', () => {
        it('ok', () => {
            const self = new Self(null as any, null as any, null as any, null as any);
            const fn = Reflect.get(self, 'getName').bind(self) as (_: string) => string;
            const res = fn('i18n-aa');
            strictEqual(res, 'lbl-aa');
        });
    });
});